<?php

$cars = array("BMW","Lamborghini","Maserati");
echo $cars[1];
$cars[2] = "Audi";


echo "<pre>";
print_r($cars);
echo count($cars);

/* 
 * To change this license header, choose License Headers in Project Properties.
 * To change this template file, choose Tools | Templates
 * and open the template in the editor.
 */

echo "</hr>";
foreach ($cars as $value) {
    echo $value ."<br/>";
}

$message = array(
    'pic' => 'images/1.jpg',
    'name' => 'avater',
    'content' => '天天好心情<span> (来自火星"女侠"的留言)</span>',
    'sex' => 'male'
);
foreach ($message as $key => $value) {
    echo $key . "=>" . $value ."<br/>";
}

?>